<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::io::Image类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1io_1_1_image.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1io_1_1_image-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::io::Image类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpcl_1_1io_1_1_image.html" title="Image interface class providing an interface to fill a RGB or Grayscale image buffer.">Image</a> interface class providing an interface to fill a <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> or Grayscale image buffer.  
 <a href="classpcl_1_1io_1_1_image.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="image_8h_source.html">image.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::io::Image 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1io_1_1_image.png" usemap="#pcl::io::Image_map" alt=""/>
  <map id="pcl::io::Image_map" name="pcl::io::Image_map">
<area href="classpcl_1_1io_1_1_image_r_g_b24.html" title="This class provides methods to fill a RGB or Grayscale image buffer from underlying RGB24 image." alt="pcl::io::ImageRGB24" shape="rect" coords="0,56,131,80"/>
<area href="classpcl_1_1io_1_1_image_y_u_v422.html" title="Concrete implementation of the interface Image for a YUV 422 image used by Primesense devices." alt="pcl::io::ImageYUV422" shape="rect" coords="141,56,272,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a1dd5fa0656e9c645815e810777cbb0fb"><td class="memItemLeft" align="right" valign="top"><a id="a1dd5fa0656e9c645815e810777cbb0fb"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Encoding</b> { <b>BAYER_GRBG</b>
, <b>YUV422</b>
, <b>RGB</b>
 }</td></tr>
<tr class="separator:a1dd5fa0656e9c645815e810777cbb0fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5beef3ca2e63c4d21e6c8b5f180544cd"><td class="memItemLeft" align="right" valign="top"><a id="a5beef3ca2e63c4d21e6c8b5f180544cd"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1io_1_1_image.html">Image</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a5beef3ca2e63c4d21e6c8b5f180544cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d950ffd06cf42b9c04096bff9f3d5c0"><td class="memItemLeft" align="right" valign="top"><a id="a2d950ffd06cf42b9c04096bff9f3d5c0"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1io_1_1_image.html">Image</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a2d950ffd06cf42b9c04096bff9f3d5c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a982fe7dd2a776a1f2c3293da22b6d027"><td class="memItemLeft" align="right" valign="top"><a id="a982fe7dd2a776a1f2c3293da22b6d027"></a>
typedef boost::chrono::high_resolution_clock&#160;</td><td class="memItemRight" valign="bottom"><b>Clock</b></td></tr>
<tr class="separator:a982fe7dd2a776a1f2c3293da22b6d027"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a73ddd62b98ffadb63968b6708295f4"><td class="memItemLeft" align="right" valign="top"><a id="a0a73ddd62b98ffadb63968b6708295f4"></a>
typedef boost::chrono::high_resolution_clock::time_point&#160;</td><td class="memItemRight" valign="bottom"><b>Timestamp</b></td></tr>
<tr class="separator:a0a73ddd62b98ffadb63968b6708295f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab30a34d84f46cc23945cc5e208a41f9b"><td class="memItemLeft" align="right" valign="top"><a id="ab30a34d84f46cc23945cc5e208a41f9b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Image</b> (FrameWrapper::Ptr image_metadata)</td></tr>
<tr class="separator:ab30a34d84f46cc23945cc5e208a41f9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fbba76daa884c80fab7a17462f4d3e1"><td class="memItemLeft" align="right" valign="top"><a id="a3fbba76daa884c80fab7a17462f4d3e1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Image</b> (FrameWrapper::Ptr image_metadata, Timestamp time)</td></tr>
<tr class="separator:a3fbba76daa884c80fab7a17462f4d3e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadb61949c5f434073ae35701a9a426bd"><td class="memItemLeft" align="right" valign="top"><a id="aadb61949c5f434073ae35701a9a426bd"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#aadb61949c5f434073ae35701a9a426bd">~Image</a> ()</td></tr>
<tr class="memdesc:aadb61949c5f434073ae35701a9a426bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">virtual Destructor that never throws an exception. <br /></td></tr>
<tr class="separator:aadb61949c5f434073ae35701a9a426bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2594f37b96d6c6628939621ef2911a06"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#a2594f37b96d6c6628939621ef2911a06">isResizingSupported</a> (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const =0</td></tr>
<tr class="separator:a2594f37b96d6c6628939621ef2911a06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc950f2fc8591fe1f1f19d66ea3bcbc4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#abc950f2fc8591fe1f1f19d66ea3bcbc4">fillRGB</a> (unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const =0</td></tr>
<tr class="memdesc:abc950f2fc8591fe1f1f19d66ea3bcbc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">fills a user given buffer with the <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> values, with an optional nearest-neighbor down sampling and an optional subregion  <a href="classpcl_1_1io_1_1_image.html#abc950f2fc8591fe1f1f19d66ea3bcbc4">更多...</a><br /></td></tr>
<tr class="separator:abc950f2fc8591fe1f1f19d66ea3bcbc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae50f9bb3452a6674a8ea6191a81180b4"><td class="memItemLeft" align="right" valign="top">virtual Encoding&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#ae50f9bb3452a6674a8ea6191a81180b4">getEncoding</a> () const =0</td></tr>
<tr class="memdesc:ae50f9bb3452a6674a8ea6191a81180b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the encoding of the native data.  <a href="classpcl_1_1io_1_1_image.html#ae50f9bb3452a6674a8ea6191a81180b4">更多...</a><br /></td></tr>
<tr class="separator:ae50f9bb3452a6674a8ea6191a81180b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4acb82be1b59fc9b03f557c2f580c19"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#ae4acb82be1b59fc9b03f557c2f580c19">fillRaw</a> (unsigned char *rgb_buffer) const</td></tr>
<tr class="memdesc:ae4acb82be1b59fc9b03f557c2f580c19"><td class="mdescLeft">&#160;</td><td class="mdescRight">fills a user given buffer with the raw values.  <a href="classpcl_1_1io_1_1_image.html#ae4acb82be1b59fc9b03f557c2f580c19">更多...</a><br /></td></tr>
<tr class="separator:ae4acb82be1b59fc9b03f557c2f580c19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e2eed06efccfc3c13dbf4343641b0dd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#a6e2eed06efccfc3c13dbf4343641b0dd">fillGrayscale</a> (unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const =0</td></tr>
<tr class="memdesc:a6e2eed06efccfc3c13dbf4343641b0dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and an optional subregion  <a href="classpcl_1_1io_1_1_image.html#a6e2eed06efccfc3c13dbf4343641b0dd">更多...</a><br /></td></tr>
<tr class="separator:a6e2eed06efccfc3c13dbf4343641b0dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01dec8a22ba63e0e70e0ed6e2c503f64"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#a01dec8a22ba63e0e70e0ed6e2c503f64">getWidth</a> () const</td></tr>
<tr class="separator:a01dec8a22ba63e0e70e0ed6e2c503f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65ff48e4156fb7bd55660acd59a4d072"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#a65ff48e4156fb7bd55660acd59a4d072">getHeight</a> () const</td></tr>
<tr class="separator:a65ff48e4156fb7bd55660acd59a4d072"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb0ce9951a1b71161792a16f9db446c"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#a4bb0ce9951a1b71161792a16f9db446c">getFrameID</a> () const</td></tr>
<tr class="separator:a4bb0ce9951a1b71161792a16f9db446c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e593e0eced8fe4719ca75ab2cb655fd"><td class="memItemLeft" align="right" valign="top">pcl::uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#a2e593e0eced8fe4719ca75ab2cb655fd">getTimestamp</a> () const</td></tr>
<tr class="separator:a2e593e0eced8fe4719ca75ab2cb655fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0001376d345fdfe04cdee8af640e1707"><td class="memItemLeft" align="right" valign="top">Timestamp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1_image.html#a0001376d345fdfe04cdee8af640e1707">getSystemTimestamp</a> () const</td></tr>
<tr class="separator:a0001376d345fdfe04cdee8af640e1707"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4cd0c9fe4e93fd01c147b227b36d98c"><td class="memItemLeft" align="right" valign="top"><a id="ae4cd0c9fe4e93fd01c147b227b36d98c"></a>
const void *&#160;</td><td class="memItemRight" valign="bottom"><b>getData</b> ()</td></tr>
<tr class="separator:ae4cd0c9fe4e93fd01c147b227b36d98c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1005af1e33a8b80e876e9d3f73e03d7"><td class="memItemLeft" align="right" valign="top"><a id="ae1005af1e33a8b80e876e9d3f73e03d7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getDataSize</b> () const</td></tr>
<tr class="separator:ae1005af1e33a8b80e876e9d3f73e03d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e147b61878801585316bd43b4a77fc0"><td class="memItemLeft" align="right" valign="top"><a id="a4e147b61878801585316bd43b4a77fc0"></a>
unsigned&#160;</td><td class="memItemRight" valign="bottom"><b>getStep</b> () const</td></tr>
<tr class="separator:a4e147b61878801585316bd43b4a77fc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:aa06ab5ebcd5df95ebb8be72087e5f2fb"><td class="memItemLeft" align="right" valign="top"><a id="aa06ab5ebcd5df95ebb8be72087e5f2fb"></a>
FrameWrapper::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>wrapper_</b></td></tr>
<tr class="separator:aa06ab5ebcd5df95ebb8be72087e5f2fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1700f3175698ac57e55a79e1d2af355c"><td class="memItemLeft" align="right" valign="top"><a id="a1700f3175698ac57e55a79e1d2af355c"></a>
Timestamp&#160;</td><td class="memItemRight" valign="bottom"><b>timestamp_</b></td></tr>
<tr class="separator:a1700f3175698ac57e55a79e1d2af355c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="classpcl_1_1io_1_1_image.html" title="Image interface class providing an interface to fill a RGB or Grayscale image buffer.">Image</a> interface class providing an interface to fill a <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> or Grayscale image buffer. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">image_metadata</td><td></td></tr>
  </table>
  </dd>
</dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a6e2eed06efccfc3c13dbf4343641b0dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e2eed06efccfc3c13dbf4343641b0dd">&#9670;&nbsp;</a></span>fillGrayscale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void pcl::io::Image::fillGrayscale </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>gray_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>gray_line_step</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and an optional subregion </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>desired width of output image. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>desired height of output image. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">gray_buffer</td><td>the output gray buffer. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">gray_line_step</td><td>optional line step in bytes to allow the output in a rectangular subregion of the output buffer. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1io_1_1_image_y_u_v422.html#a2586c07be35f43a1754af2af454c8e75">pcl::io::ImageYUV422</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_image_r_g_b24.html#a74823196149282655a46977b93f3318a">pcl::io::ImageRGB24</a> 内被实现.</p>

</div>
</div>
<a id="ae4acb82be1b59fc9b03f557c2f580c19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4acb82be1b59fc9b03f557c2f580c19">&#9670;&nbsp;</a></span>fillRaw()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void pcl::io::Image::fillRaw </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>rgb_buffer</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>fills a user given buffer with the raw values. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">rgb_buffer</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;          memcpy (rgb_buffer, wrapper_-&gt;getData (), wrapper_-&gt;getDataSize ());</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="abc950f2fc8591fe1f1f19d66ea3bcbc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc950f2fc8591fe1f1f19d66ea3bcbc4">&#9670;&nbsp;</a></span>fillRGB()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void pcl::io::Image::fillRGB </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>rgb_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>rgb_line_step</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>fills a user given buffer with the <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> values, with an optional nearest-neighbor down sampling and an optional subregion </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>desired width of output image. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>desired height of output image. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">rgb_buffer</td><td>the output <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> buffer. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rgb_line_step</td><td>optional line step in bytes to allow the output in a rectangular subregion of the output buffer. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1io_1_1_image_y_u_v422.html#a0d2b77bbea48ee1a81d6fabbdcd69345">pcl::io::ImageYUV422</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_image_r_g_b24.html#aeda8c46ccdaa368132a49b4622d207e7">pcl::io::ImageRGB24</a> 内被实现.</p>

</div>
</div>
<a id="ae50f9bb3452a6674a8ea6191a81180b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae50f9bb3452a6674a8ea6191a81180b4">&#9670;&nbsp;</a></span>getEncoding()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual Encoding pcl::io::Image::getEncoding </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>returns the encoding of the native data. </p>
<dl class="section return"><dt>返回</dt><dd>encoding </dd></dl>

<p>在 <a class="el" href="classpcl_1_1io_1_1_image_y_u_v422.html#a6f9c607bf804d8913eb9f34f39128b9f">pcl::io::ImageYUV422</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_image_r_g_b24.html#acadd2a654b3bb9d2a3cd9e867aa7e53d">pcl::io::ImageRGB24</a> 内被实现.</p>

</div>
</div>
<a id="a4bb0ce9951a1b71161792a16f9db446c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bb0ce9951a1b71161792a16f9db446c">&#9670;&nbsp;</a></span>getFrameID()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned pcl::io::Image::getFrameID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>frame id of the image. </dd></dl>
<dl class="section note"><dt>注解</dt><dd>frame ids are ascending, but not necessarily synchronized with other streams </dd></dl>
<div class="fragment"><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;          <span class="keywordflow">return</span> (wrapper_-&gt;getFrameID ());</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a65ff48e4156fb7bd55660acd59a4d072"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65ff48e4156fb7bd55660acd59a4d072">&#9670;&nbsp;</a></span>getHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned pcl::io::Image::getHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>height of the image </dd></dl>
<div class="fragment"><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        {</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;          <span class="keywordflow">return</span> (wrapper_-&gt;getHeight ());</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a0001376d345fdfe04cdee8af640e1707"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0001376d345fdfe04cdee8af640e1707">&#9670;&nbsp;</a></span>getSystemTimestamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Timestamp pcl::io::Image::getSystemTimestamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the timestamp of the image </dd></dl>
<dl class="section note"><dt>注解</dt><dd>the time value <em>is</em> synchronized with the system time. </dd></dl>
<div class="fragment"><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;          <span class="keywordflow">return</span> (timestamp_);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a2e593e0eced8fe4719ca75ab2cb655fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e593e0eced8fe4719ca75ab2cb655fd">&#9670;&nbsp;</a></span>getTimestamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">pcl::uint64_t pcl::io::Image::getTimestamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the timestamp of the image </dd></dl>
<dl class="section note"><dt>注解</dt><dd>the time value is not synchronized with the system time </dd></dl>
<div class="fragment"><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;          <span class="keywordflow">return</span> (wrapper_-&gt;getTimestamp ());</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a01dec8a22ba63e0e70e0ed6e2c503f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01dec8a22ba63e0e70e0ed6e2c503f64">&#9670;&nbsp;</a></span>getWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned pcl::io::Image::getWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>width of the image </dd></dl>
<div class="fragment"><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;          <span class="keywordflow">return</span> (wrapper_-&gt;getWidth ());</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a2594f37b96d6c6628939621ef2911a06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2594f37b96d6c6628939621ef2911a06">&#9670;&nbsp;</a></span>isResizingSupported()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool pcl::io::Image::isResizingSupported </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>input_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>input_height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>output_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>output_height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input_width</td><td>width of input image </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">input_height</td><td>height of input image </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">output_width</td><td>width of desired output image </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">output_height</td><td>height of desired output image </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>whether the resizing is supported or not. </dd></dl>

<p>在 <a class="el" href="classpcl_1_1io_1_1_image_y_u_v422.html#addc2eb43e54b8bc6752472d6bfad21c5">pcl::io::ImageYUV422</a> , 以及 <a class="el" href="classpcl_1_1io_1_1_image_r_g_b24.html#a3f033f9d04eef3e68b43451fe273cfb7">pcl::io::ImageRGB24</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>io/include/pcl/io/<a class="el" href="image_8h_source.html">image.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>io</b></li><li class="navelem"><a class="el" href="classpcl_1_1io_1_1_image.html">Image</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
